<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "bus_repertory_inc".
 *
 * @property integer $inc_id
 * @property string $goods_specs
 * @property string $goods_name
 * @property integer $inc_count
 * @property string $supplier_name
 * @property string $goods_brand
 * @property string $goods_series
 * @property string $goods_category
 * @property string $goods_cost_price
 * @property string $goods_sell_price
 * @property string $inc_remark
 * @property string $inc_time
 * @property string $shop_id
 * @property string $boss_id
 * @property string $unique_flag
 * @property integer $repertory_count
 */
class BusRepertoryInc extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'bus_repertory_inc';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['goods_specs', 'goods_name', 'inc_count', 'supplier_name', 'goods_brand', 'goods_series', 'goods_category', 'goods_cost_price', 'goods_sell_price', 'shop_id', 'unique_flag'], 'required'],
            [['inc_count', 'shop_id', 'boss_id', 'repertory_count'], 'integer'],
            [['goods_cost_price', 'goods_sell_price'], 'number'],
            [['inc_time'], 'safe'],
            [['goods_specs', 'goods_brand', 'goods_series', 'goods_category'], 'string', 'max' => 45],
            [['goods_name', 'supplier_name', 'inc_remark', 'unique_flag'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'inc_id' => 'Inc ID',
            'goods_specs' => '商品规格',
            'goods_name' => '商品名称',
            'inc_count' => '入库数量',
            'supplier_name' => '供应商',
            'goods_brand' => '品牌',
            'goods_series' => '系列',
            'goods_category' => '类别',
            'goods_cost_price' => '成本价',
            'goods_sell_price' => '零售价',
            'inc_remark' => '备注',
            'inc_time' => '入库时间',
            'shop_id' => '所属分店',
            'boss_id' => '老板编号',
            'unique_flag' => '唯一标识',
            'repertory_count' => '库存',
        ];
    }
}
